//
//  ShardModel.m
//  Pianke
//
//  Created by BetaTheta on 16/1/18.
//  Copyright © 2016年 BetaTheta. All rights reserved.
//

#import "ShardModel.h"

@implementation ShardModel
// 重写setValue
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"userinfo"]) {
        self.uname = value[@"uname"];
        self.icon = value[@"icon"];
    }
    if ([key isEqualToString:@"counterList"]) {
        self.comment = value[@"comment"];
        self.like = value[@"like"];
    }
    if ([key isEqualToString:@"tag_info"]) {
        self.tag = value[@"tag"];
        self.count = value[@"count"];
        self.offical = value[@"offical"];
    }
}
@end
